﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ActualizarProducto.ascx.cs" Inherits="CustomControls_ActualizarProducto" %>
<div class="form">
        <div class="required-message">Los campos indicados con <span class="required-mark">*</span> son requeridos</div>
    <fieldset><legend>&nbsp;Catidad de Producto</legend>
       
        <div class="field-line">
             <asp:Label runat="server"  Width="121"   AssociatedControlID="txtQuantity" CssClass="left long-label" ID="lblCurrentQuantity"  Text="&nbsp;&nbsp;Cantidad Actual:"></asp:Label>
             &nbsp;<asp:Label runat="server" Width="115" AssociatedControlID="txtQuantity" CssClass="left" ID="lblCurrentQuantityValue"  ></asp:Label>
        </div>
        
        <div class="field-line">
           
            <asp:Label runat="server" Width="135" CssClass="left" ID="lblQuantity" AssociatedControlID="txtQuantity" Text="<span class='required-mark'>*</span> Cantidad"></asp:Label>
            <asp:TextBox runat="server" ID="txtQuantity" CssClass="short-field" MaxLength="10"></asp:TextBox> 
             <asp:DropDownList runat="server" ID="drpUnit">
                <asp:ListItem Value="kg">kg</asp:ListItem>
                <asp:ListItem Value="g">g</asp:ListItem>
                <asp:ListItem Value="l">l</asp:ListItem>
                <asp:ListItem Value="ml">ml</asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" ForeColor="Red" SetFocusOnError="true"
                ControlToValidate="txtQuantity" ErrorMessage="Requerido"></asp:RequiredFieldValidator>
            <asp:CompareValidator runat="server" ID="CompareValidator1" ControlToValidate="txtQuantity" Type="Double" ForeColor="Red" Display="Dynamic" SetFocusOnError="true" ErrorMessage="Valor Inv&aacute;lido"></asp:CompareValidator>
            <div class="field-line quantity-warning">
                La cantidad introducida ser&aacute; sumada o restada de la cantidad actual de acuerdo a la opci&oacute;n seleccionada en el campo "operaci&oacute;n"
            </div>

        </div>
        <div class="field-line">
             <asp:Label runat="server" Width="135" style="line-height:10px" CssClass="left" ID="lblOperation" AssociatedControlID="rdIncrease" Text="&nbsp;&nbsp;Operati&oacute;n"></asp:Label>
            <asp:RadioButton ID="rdIncrease" Checked="true" GroupName="operation" runat="server" />
            <asp:Label AssociatedControlID="rdIncrease" runat="server" ID="litIncrease">Incrementar</asp:Label>
            <asp:RadioButton ID="rdDecrease"  GroupName="operation" runat="server" />
            <asp:Label runat="server" AssociatedControlID="rdDecrease" ID="litDecrease">Decrementar</asp:Label>
        </div>
        <div class="buttons-actions">
            <asp:Button  runat="server" ID="btnSave" OnClick="btnSave_Click" Text="Guardar" />
            <asp:Button runat="server" ID="btnCancel" OnClick="btnCancel_Click" CausesValidation="false" Text="Cancelar" />
        </div>
        
    </fieldset>

</div>    